package org.lb.MarketingSystem.serviceImpl;

import java.util.List;

import org.lb.MarketingSystem.dao.ProductTypeMapperDao;
import org.lb.MarketingSystem.entity.Product;
import org.lb.MarketingSystem.entity.ProductType;
import org.lb.MarketingSystem.service.ProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component(value="ProductTypeServiceImpl")
public class ProductTypeServiceImpl implements ProductTypeService{
	@Autowired
    private ProductTypeMapperDao productTypeMapperDao;
	public boolean addProductType(Product product) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean deleteProductType(String productTypeId) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean get_allProduct() {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean updataPruductType(ProductType productType) {
		// TODO Auto-generated method stub
		return false;
	}

	public String getProductType(String ProductId) {
		// TODO Auto-generated method stub
		return null;
	}

	public List<ProductType> getallProductType() {
	
		return productTypeMapperDao.selectallProductType();
	}

	public ProductType getProductTypeIDByTypeName(String typeName) {
		// TODO Auto-generated method stub
		return productTypeMapperDao.selectProductTypeIDByTypeName(typeName);
	}

}
